function getAccountList (params) {
    return $axios({
        url: '/account/page',
        method: 'get',
        params
    })
}

// 修改---启用禁用接口
function enableOrDisableAccount (params) {
    return $axios({
        url: '/account',
        method: 'put',
        data: { ...params }
    })
}

// 新增---添加管理员
function addAccount (params) {
    return $axios({
        url: '/account',
        method: 'post',
        data: { ...params }
    })
}

// 修改---添加管理员
function editAccount (params) {
    return $axios({
        url: '/account',
        method: 'put',
        data: { ...params }
    })
}

// 修改页面反查详情接口
function queryAccountById (id) {
    return $axios({
        url: `/account/${id}`,
        method: 'get'
    })
}

//查看流水  /accountFlow
function getAccountFlowList (params) {
    return $axios({
        url: '/accountFlow/page',
        method: 'get',
        params
    })
}

//缴费
function accountPay (params) {
    return $axios({
        url: '/account/pay',
        method: 'post',
        data: { ...params }
    })
}

//支出
function zhichuCount (params) {
    return $axios({
        url: '/account/zhichuMoney',
        method: 'post',
        data: { ...params }
    })
}

function outputAccountFlowList (params) {
    return $axios({
        url: '/accountFlow/output',
        method: 'post',
        data: { ...params }
    })
}